Code
import polars as pl
# from pyobsplot import Plot
# from pyobsplot import Plot, d3, Math, js
from pyobsplot import Obsplot, Plot, d3, js
opw = Obsplot(renderer="widget")
# opj = Obsplot(renderer="jsdom")
penguins = pl.read_csv("https://github.com/juba/pyobsplot/raw/main/doc/data/penguins.csv")- 1
-
The
rendererparameter can be set to"widget"or"jsdom". The former is the default and uses theipywidgetslibrary to render the plot in a Jupyter notebook. The latter uses thepywebviewlibrary to render the plot in a separate window. - 2
-
The
penguinsdataset is a popular dataset from thepalmerpenguinspackage in R. It contains measurements of penguins from three species: Adelie, Chinstrap, and Gentoo.